package br.com.canvasForAll.model.services;

import java.util.ArrayList;
import java.util.Collection;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.canvasForAll.model.entity.Comentario;
import br.com.canvasForAll.model.entity.Postit;
import br.com.canvasForAll.model.repository.ComentarioRepository;
import br.com.canvasForAll.model.services.interfaces.ComentarioService;

@Stateless
@Named("comentarioService")
public class ComentarioServiceImpl implements ComentarioService {

	@EJB
	private ComentarioRepository comentarioRepository;
	
	@Override
	public Collection<Comentario> obterComentarioPorPostit(Postit postit) throws Exception {
		return new ArrayList<>(comentarioRepository.obterComentarioPorPostit(postit));
	}
	
	
	
	
}
